package com.sk.coin.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sk.coin.sys.entity.AdminBank;
import com.sk.coin.sys.mapper.AdminBankMapper;
import com.sk.coin.sys.service.IAdminBankService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 人民币充值卡号管理 服务实现类
 * </p>
 *
 * @author Administrator
 * @since 2022-03-06
 */
@Service
public class AdminBankServiceImpl extends ServiceImpl<AdminBankMapper, AdminBank> implements IAdminBankService {

    @Override
    public Page<AdminBank> findByPage(Page<AdminBank> page, String bankCard) {
        return page(page,new LambdaQueryWrapper<AdminBank>()
                .like(StringUtils.isNotEmpty(bankCard),AdminBank::getBankCard ,bankCard));
    }
}
